namespace hotupdate {
namespace cframework {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Newtonsoft.Json;
using UnityEngine.UI;
    using System.Runtime.CompilerServices;

    public static class AppManager
{
        public const string appInfoFileNameWithoutExt = "hotupdate_app_info";
        public const string appInfoFileName = appInfoFileNameWithoutExt + ".txt";
        static HotUpdateAppInfo appInfo;
    public static HotUpdateAppInfo GetAppInfo()
    {
        if(appInfo == null)
        {
            TextAsset appInfoAsset = Resources.Load<TextAsset>(appInfoFileNameWithoutExt);
            appInfo = JsonConvert.DeserializeObject<HotUpdateAppInfo>(appInfoAsset.text);
        }

        return appInfo;
    }

    public static void Reset()
    {
        appInfo = null;
    }
}
}
}